package com.zhouyu.service;

import org.springframework.context.weaving.LoadTimeWeaverAware;
import org.springframework.instrument.classloading.LoadTimeWeaver;
import org.springframework.stereotype.Component;

/**
 * @author by gang.Li 2022/4/5 20:26
 */
@Component
public class LoadTimeWeaverAwareTest implements LoadTimeWeaverAware {
	@Override
	public void setLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver) {
		System.out.println("提前获取classLoader进行一些特定的操作" + loadTimeWeaver.getThrowawayClassLoader());
	}
}
